{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 6,
   "id": "4674efb3-a427-4db0-8a54-32894e787bfa",
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "2*3的数组arr1:\n",
      " [[10 20 30]\n",
      " [40 50 60]]\n",
      "2*3的数组arr2:\n",
      " [[1 2 2]\n",
      " [2 2 3]]\n",
      "arr1和arr2的加法运算:\n",
      " [[11 22 32]\n",
      " [42 52 63]]\n",
      "arr1和arr2的减法运算:\n",
      " [[ 9 18 28]\n",
      " [38 48 57]]\n",
      "arr1和arr2的乘法运算:\n",
      " [[ 10  40  60]\n",
      " [ 80 100 180]]\n",
      "arr1和arr2的除法运算:\n",
      " [[10. 10. 15.]\n",
      " [20. 25. 20.]]\n",
      "arr1和arr2的幂运算:\n",
      " [[    10    400    900]\n",
      " [  1600   2500 216000]]\n"
     ]
    }
   ],
   "source": [
    "import numpy as np\n",
    "arr1=np.array([[10,20,30],[40,50,60]])\n",
    "print('2*3的数组arr1:\\n',arr1)\n",
    "arr2=np.array([[1,2,2],[2,2,3]])\n",
    "print('2*3的数组arr2:\\n',arr2)\n",
    "print('arr1和arr2的加法运算:\\n',arr1+arr2)\n",
    "print('arr1和arr2的减法运算:\\n',arr1-arr2)\n",
    "print('arr1和arr2的乘法运算:\\n',arr1*arr2)\n",
    "print('arr1和arr2的除法运算:\\n',arr1/arr2)\n",
    "print('arr1和arr2的幂运算:\\n',arr1**arr2)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "a99a95ab-1884-40cd-8dcb-4068a52dbff7",
   "metadata": {},
   "outputs": [],
   "source": []
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "47ddacd2-d4e7-4b75-bf99-5b3c872f25fc",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.13.5"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
